<template>
  <div>
    <h3>这是Login组件</h3>
    <el-button @click="switchHome">进入home主页</el-button>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  methods: {
    switchHome() {
      this.$router.push({ name: 'home' });
    }
  }
};
</script>
